import uuid
from datetime import datetime

from api.base_api import BaseUserApi


class CreateNewBankCard(BaseUserApi):

    def __init__(self):
        uuidNumber = str(uuid.uuid1())
        kui_hu_time = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
        super().__init__()
        self.url = f'{self.host}/kejiyinhangyewuguanli/yinhangka/save'
        self.method = 'post'
        self.json = {"yinhangkaUuidNumber": uuidNumber, "kaihudiTypes": 1,
                     "yinhangkaPhone": "13111111111", "yinhangkaEmail": "1@qq.com", "kaihuTime": kui_hu_time,
                     "yinhangkaContent": "<p>test01_card</p>"}
